package com.hjh.webdemo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
@TableName("smbms_user")
public class User implements Serializable {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Integer id;
    @TableField("userCode")
    private String userCode;
    @TableField("userName")
    private String userName;
    @TableField("userPassword")
    private String userPassword;
    @TableField("gender")
    private Integer gender;
    @TableField("birthday")
    private Date birthday;
    @TableField("phone")
    private String phone;
    @TableField("address")
    private String address;
    @TableField("userRole")
    private Integer userRole;
    @TableField("createdBy")
    private Integer createdBy;
    @TableField("creationDate")
    private Date creationDate;
    @TableField("modifyBy")
    private Integer modifyBy;
    @TableField("modifyDate")
    private Date modifyDate;
    @TableField("idPicPath")
    private String idPicPath;
    @TableField("workPicPath")
    private String workPicPath;

    public User(){}
    public User(Integer id, String userCode, String userName, String userPassword, Integer gender, Date birthday, String phone, String address, Integer userRole, Integer createdBy, Date creationDate, Integer modifyBy, Date modifyDate, String idPicPath, String workPicPath) {
        this.id = id;
        this.userCode = userCode;
        this.userName = userName;
        this.userPassword = userPassword;
        this.gender = gender;
        this.birthday = birthday;
        this.phone = phone;
        this.address = address;
        this.userRole = userRole;
        this.createdBy = createdBy;
        this.creationDate = creationDate;
        this.modifyBy = modifyBy;
        this.modifyDate = modifyDate;
        this.idPicPath = idPicPath;
        this.workPicPath = workPicPath;
    }


}
